﻿<%@ Assembly Name="$SharePoint.Project.AssemblyFullName$" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Import Namespace="Microsoft.SharePoint.ApplicationPages" %>

<%@ Register TagPrefix="asp" Namespace="System.Web.UI"
    Assembly="System.Web.Extensions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"
    Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities"
    Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register TagPrefix="Taxonomy" Namespace="Microsoft.SharePoint.Taxonomy"
    Assembly="Microsoft.SharePoint.Taxonomy, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Package.aspx.cs"
    Inherits="Practices.SharePoint.Apps.PackagePage" DynamicMasterPageFile="~masterurl/default.master" %>

<asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
    App Package
</asp:Content>

<asp:Content ID="PageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server">
    <link rel="stylesheet" href="/_layouts/15/Styles/bootstrap.min.css" />
    <script src="/_layouts/15/Scripts/Apps.Ribbon.Actions.js" type="text/javascript"></script>
</asp:Content>

<asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">
    <form class="form-horizontal">
        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="launchUrl">地址</label>
            <div class="col-xs-12 col-sm-9">
                <div class="clearfix">
                    <input id="launchUrl" class="col-xs-12 col-sm-6" />
                </div>
            </div>
        </div>

        <div class="space-2"></div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="title">名称</label>
            <div class="col-xs-12 col-sm-9">
                <div class="clearfix">
                    <input id="title" class="col-xs-12 col-sm-6" />
                </div>
            </div>
        </div>

        <div class="space-2"></div>

        <asp:Repeater ID="CategoryRepeater" runat="server">
            <ItemTemplate>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="title">
                        <asp:Literal ID="FieldName" runat="server"
                            Text='<%# DataBinder.Eval(Container.DataItem, "Title") %>' />
                    </label>
                    <div class="col-xs-12 col-sm-9">
                        <div class="clearfix">
                            <Taxonomy:TaxonomyWebTaggingControl ID="FieldValue" runat="server"
                                SSPList='<%# DataBinder.Eval(Container.DataItem, "SspId") %>'
                                TermSetList='<%# DataBinder.Eval(Container.DataItem, "TermSetId").ToString() %>'
                                AnchorId='<%# DataBinder.Eval(Container.DataItem, "AnchorId") %>'
                                IsMulti='<%# DataBinder.Eval(Container.DataItem, "AllowMultipleValues") %>'
                                AllowFillIn="true"
                                IsAddTerms="true" />
                        </div>
                    </div>
                </div>
            </ItemTemplate>
        </asp:Repeater>

        <div class="hr hr-dotted"></div>

        <div class="form-group">
            <label class="control-label col-xs-12 col-sm-3 no-padding-right" for="">图标</label>
            <div class="col-xs-12 col-sm-9">
                <div class="clearfix">
                    <input id="icon" class="col-xs-12 col-sm-6" />
                    <input id="color" class="col-xs-12 col-sm-6" />
                </div>
            </div>
        </div>

        <div class="clearfix form-actions">
            <div class="col-md-offset-3 col-md-9">
                <button class="btn btn-info" type="button">
                    <i class="fa fa-check bigger-110"></i>
                    Submit									
                </button>

                &nbsp; &nbsp; &nbsp;
									
                <button class="btn" type="reset">
                    <i class="fa fa-undo bigger-110"></i>
                    Reset									
                </button>
            </div>
        </div>
    </form>
</asp:Content>
